// Next.js API route support: https://nextjs.org/docs/api-routes/introduction
import type { NextApiRequest, NextApiResponse } from 'next'

type Data = {
  flag: string,
  msg: string,
  data: object
}

export default async function handler(
  req: NextApiRequest,
  res: NextApiResponse<Data>
) {
  res.status(200).json({ 
    "flag": "0000",
    "msg": "success",
    "data": {
      "primaryId": "101",
      "orderId": "101",
      "orderStatus": "mm01",
      "nickName": "妹纸01",
      "totalPrices": "1"
    }
  })
}
